package models;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class FileRevision extends Model {
	
	public enum ChangeAction {
		ADD, MODIFY, DELETE;
	}
	
	@ManyToOne
	public Revision revision;
	
	@ManyToOne
	public RepositoryFile repositoryFile;
	
	@Enumerated(EnumType.STRING)
	public ChangeAction changeAction;

}
